package com.ynkbny.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ynkbny.base.PageResult;
import com.ynkbny.domain.Gaugeverifycfg;
import com.ynkbny.domain.pojo.EnterpriseGetNameVO;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author 杨亚
 * @version 1.0.0
 * @title 针对表【t_ep_gaugeverifycfg(用能单位计量器具检定/校准记录)】的数据库操作Service
 * @description 针对表【t_ep_gaugeverifycfg(用能单位计量器具检定/校准记录)】的数据库操作Service
 * @create 2023-11-22 14:15:38
 **/
public interface GaugeverifycfgService extends IService<Gaugeverifycfg> {
    @Transactional(rollbackFor = {java.lang.Exception.class})
    void getDataForLaoGou(String token, EnterpriseGetNameVO enterpriseGetNameVO);

    /**
     * 上传数据
     *
     * @param enterpriseCode 社会信用代码
     * @param token  AK
     */
    void pushData(String enterpriseCode, String token);

    /**
     * 新增
     *
     * @param gaugeverifycfg
     * @return
     */
    boolean add(Gaugeverifycfg gaugeverifycfg);

    /**
     * 删除
     *
     * @param gaugeverifycfg
     * @return
     */
    boolean delete(Gaugeverifycfg gaugeverifycfg);

    /**
     * 修改
     *
     * @param gaugeverifycfg
     * @return
     */
    boolean update(Gaugeverifycfg gaugeverifycfg);

    /**
     * 分页查询 查所有
     *
     * @param pageNum
     * @param pageSize
     * @param condition
     * @return
     */
    PageResult<Gaugeverifycfg> pageList(Long pageNum, Long pageSize, String condition);
}
